using System.Linq;
using Comdiv.Application;
using Comdiv.Conversations;
using Comdiv.Extensions;
using Comdiv.Inversion;
using Comdiv.IO;
using Comdiv.Logging;
using Comdiv.Model;
using Comdiv.Model.Interfaces;
using Comdiv.MVC;
using Comdiv.MVC.Preprocess;
using Comdiv.Persistence;
using Comdiv.Security;
using Comdiv.Security.Acl;
using Comdiv.Test.Extensions;
using NUnit.Framework;

namespace Comdiv.Core.Test.CURRENTWORK{
    [TestFixture]
    public class workbench_20090726 : IExtendedFixture{
        [Test]
        public void import_fluent_preprocessor_works(){
            var result = new FluentImportPreprocessor().Preprocess(@"<%
#fluent
div(self)
%>");
            result.Should().Be.EqualTo(@"<%
import Comdiv.FluentView
div(self)
%>");
        }

        [Test]
        public void mvc_application_has_import_fluent_preprocessor(){
            ioc.finish();
            new MvcApplication().Start();
            ioc.all<FluentImportPreprocessor>().Should().Not.Be.Empty();
        }
    }
}